const express = require('express')
const userServe = require('../../servers/userServe')
const userRouter = express.Router()

// 设置user的路由地址
userRouter.get('/user', async(req, res, next) => {
    let { query } = req.query //请求的参数
    let result; //返回的结果
    if (query == '' || query == undefined) {
        result = await userServe.getUser(req.query)
    }
    res.send(result)
})
module.exports = userRouter